<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>NCD :: Ponto Eletrônico</title>
<style>
.errornote { font-size:12px !important; display:block; padding:4px 5px 4px 25px; margin:0 0 3px 0; border:1px solid red; color:red;background:#ffc url(../img/admin/icon_error.gif) 5px .3em no-repeat; }
</style>

<script type="text/javascript">
 if (window.location.href.search('http://')>-1){
       window.location.href= window.location.href.replace('http','https');
 }
</script>

</head>
<body style="background-image: url({{ MEDIA_URL }}img/degrade_fundo2.jpg);">
<div style="text-align: center;"><br>
<br>
<br>
<br>
<table style="text-align: left; margin-left: auto; margin-right: auto; width: 400px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="text-align: center;"><img style="width: 250px; height: 259px;" alt="" src="{{ MEDIA_URL }}img/Logo_NCD_small.png"><br>
<br>
<big style="font-family: Verdana; font-weight: bold;"><big><big>Ponto
Eletrônico</big></big></big><br>
<br>
{% if duplicado %}
	<p class="errornote">
	Você já
	{% if tipo %}
		entrou no sistema, primeiro você deve sair.
	{% else %}
		saiu do sistema, primeiro você deve entrar.
	{%endif%}
	</p>
{%endif%}
{% if erro %}
	<p class="errornote"> Usuário ou senha incorretos</p>
{%endif%}
<form action="" method="post" id="login-form">
<div style="text-align: right;"></div>
<table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td style="text-align: right; width: 116px;">Usuário:
</td>
<td style="text-align: left; width: 272px;"><input type="text" name="login" size='30' /></td>
</tr>
<tr>
<td style="text-align: right; width: 116px;">Senha:
</td>
<td style="text-align: left; width: 272px;"><input type="password" name="senha" size='30' /></td>
</tr>
<tr align="center">
<td style="width: 272px;" colspan="2" rowspan="1"><input style="height: 24px; width: 100px;" value="Entrar" name="tipo" type="submit"/>
<input style="height: 24px; width: 100px;" value="Sair" name="tipo" type="submit" /><br>
<input  style="display:none;" value="Logar" name="tipo" id='tipo' type="submit" />
<script>
function loga(){
ob = document.getElementById('tipo');
ob.click();
}
</script>

<a href="javascript:loga();"><small><small>Preferências</small></small></a></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
</div>
</body></html>
